package com.yjd.comm.system.enums;

/**
 * 
 * @ClassName: DictTypeEnum
 * @Description: 字典类型
 * @author ready likun_557@163.com
 * @date 2014-8-11 下午1:51:56
 */
public enum DictTypeEnum {
	prize_type("prize_type","奖品类型"),
	fs_config_type("fs_config_type", "文件系统类型"), 
	yesorno("boolean", "是否"), 
	cashout_status("cashout_status", "提现状态"), 
	cashout_step("cashout_step", "提现步骤"), 
	comp_busy("comp_busy", "所属行业"), 
	comp_quality("comp_quality", "单位性质"), 
	comp_scale("comp_scale", "单位规模"), 
	contact_type("contact_type", "联系人类型"), 
	contact_type_1("contact_type_1", "直系联系人关系"), 
	contact_type_2("contact_type_2","其他联系人关系"), 
	education("education", "最高学历"), 
	email_status("email_status", "邮件状态"), 
	hp_level("hp_level", "医院等级"), 
	hp_quality("hp_quality", "医院性质"), 
	hp_type("hp_type", "医院类别"), 
	job_status("job_status", "短信状态"), 
	login_way("login_way", "登入渠道"), 
	marry_status("marry_status", "婚姻"), 
	order_status("order_status", "订单状态"), 
	project_biaoqi("project_biaoqi", "投标期"), 
	project_danbao("project_danbao","担保方式"), 
	project_return_type("project_return_type", "还款方式"), 
	project_status("project_status", "项目状态"),
	project_term("project_term", "借款期限"), 
	project_type("project_type", "产品类别"), 
	project_yongtu("project_yongtu","借款用途"), 
	promotion_status("promotion_status", "推广收益状态"), 
	offline_recharge("offline_recharge", "线下充值类型"),
	wallet_activity("wallet_activity", "活动奖励"),
	voucher_activity("voucher_activity", "充值券活动"),
	offline_recharge_parent("offline_recharge_parent", "线下充值类型大类"),
	wallet_activity_parent_bi("wallet_activity_parent_bi", "红包活动大类"),
	register_resource("register_resource", "注册来源"), 
	reg_way("reg_way", "注册渠道"),
	sex("sex", "性别"), 
	sms_status("sms_status", "短信状态"), 
	spread_source("spread_source", "推广渠道"), 
	work_class("work_class", "单位类别"), 
	work_income("work_income", "年收入"), 
	work_position("work_position", "职位"), 
	work_year("work_year", "工作年限"), 
	acct_record_type("acct_record_type","账务类型"), 
	cert_type("cert_type", "证件类型"), 
	project_step("project_step", "借款审批步骤"), 
	project_approval_project_status("project_approval_project_status", "借款项目审批状态"), 
	project_auth("project_auth", "借款项目认证类型"), 
	creditor_status("creditor_status","债权状态"), 
	return_status("return_status", "还款状态"), 
	invest_type("invest_type", "投资类型"), 
	voucher_status("voucher_status","充值券状态"), 
	record_incr("record_incr", "流水账标志位"),
	project_refuse_key("project_refuse_key","项目审核拒绝码"),
	cash_refuse("cash_refuse","日线拒绝"),
	project_apr("project_apr","标的年化率"),
	/*******易借卡********/
	home_type("home_type","住宅性质"),
	health_commerce_position("health_commerce_position","健康产业商会职务"),
	area_commerce("area_commerce","区域商会"),
	credit_bank("credit_bank","信用卡授信银行"),
	/*******易借卡********/
	oper_type("oper_type","工资卡交易类型"),
	/**小钱包**/
	wal_funds_type("wal_funds_type", "小钱包资金流水类型"),
	/**小钱包**/
	acct_record_ptype("acct_record_ptype", "资金流水ptype类型"),
	gold_funds_data_type("gold_funds_data_type", "医信宝资金流水类型");
	

	private String dictType;
	private String description;

	private DictTypeEnum(String dictType, String description) {
		this.dictType = dictType;
		this.description = description;
	}

	public String getDescription() {
		return description;
	}

	public String getDictType() {
		return dictType;
	}
	
	public static DictTypeEnum get(String dictType){
		DictTypeEnum [] dictTypeEnums = DictTypeEnum.values();
		for (DictTypeEnum dictTypeEnum : dictTypeEnums) {
			if(dictTypeEnum.getDictType().equals(dictType)){
				return dictTypeEnum;
			}
		}
		return null;
	}
}
